<!DOCTYPE html>
<html>
<head>
    <title>detail</title>
    <style type="text/css">
        #window-resizer-tooltip{
            display: none;
        }
        td,th{
            border: 1px solid red;
            padding: 5px;
        }
    </style>
</head>
<body>

<?php include_once "core/config.php" ;?>

<a href="javascript:history.go(-1)">Back</a>
<br />
<?php
if(!$conn_mysql){
    echo "ko the ket noi den server database. Loi: " . mysql_error();
}else{
    if(!$db_test){
        echo "ko the ket noi den Database: Test. Loi: " . mysql_error();
    }else{
        $sql_query = "select * from contact where id=" . $_GET["Id"];
        $result = mysql_query($sql_query, $conn_mysql);
        if (!$result) {
            echo "loi truy van: " . mysql_error();
        }else {
            $row = mysql_fetch_array($result);
            echo "<p>Ten: <b>".$row["Name"]."</b></p>";
            echo "<p>Phone: <b>".$row["Phone"]."</b></p>";
            echo "<p><a href='edit.php?Id=" . $row["Id"] . "'>Sua</a></p>";
        }
    }
}
;?>


<?php include_once "core/ga.php" ;?>
</body>
</html>